package com.candy.niuniu.logdubbo.service.impl;

import com.candy.niuniu.logdubbo.entity.LogLink;
import com.candy.niuniu.logdubbo.mapper.LogLinkMapper;
import com.candy.niuniu.logdubbo.service.LogLinkService;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/11/16 13:59
 * @Description 描述
 */
@Slf4j
@Service
public class LogLinkServiceImpl extends ServiceImpl<LogLinkMapper, LogLink> implements LogLinkService {

    @PostConstruct
    public void test() {
//        LogLink entity = new LogLink();
//        entity.setId(112l);
//        save(entity);
//        System.out.println(11111);

        LogLink logLink = getById(111l);
        log.info("查询结果：{}", logLink);
    }

}
